package com.css.zfzx.sjcj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

@SpringBootApplication
@ComponentScan("com.css")
public class StartApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StartApplication.class, args);
        Environment environment = context.getBean(Environment.class);
        System.out.println(environment.getProperty("spring.application.description")+"系统 启动成功！！！");
        System.out.println("访问链接：http://"+environment.getProperty("server.ip")+":" + environment.getProperty("server.port") + environment.getProperty("server.servlet.context-path"));

    }

}
